this.view ={use: 'base.html', doctype: "transitional"}

this.handler = function(){
	
	forms.init(request);
	actions.init(response);
	
	var userCookie = request.getCookieValue(constants.get("loginCookieKey")),
    userObj = userCookie && storage.users.getSingle({cookie: userCookie});
		
	if(userObj){
		request.attr("user", userObj.value);
		//$("body").append("<a href='/logout'>logout</a>");
	}
	else if(request.uri != "/"){
	  request.attr("returnUrl", request.uri + "?" + request.queryString);
	  request.forward("/");
	}
}